//
//  constant.h
//  LClass
//
//  Created by 严军 on 16/5/29.
//  Copyright © 2016年 YanJun. All rights reserved.
//

#ifndef constant_h
#define constant_h

/*                      通用定义                        */

//获取当前版本号
#define Version [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

//获取设备物理高度
#define ScreenHeight [UIScreen mainScreen].bounds.size.height

//获取设备物理高度
#define ScreenWidth [UIScreen mainScreen].bounds.size.width

//获取当前系统版本
#define CurrentVersion [[[UIDevice currentDevice] systemVersion] floatValue]

/*                  颜色                  */

//通用背景颜色
#define ThemNavBackgroundColor [UIColor colorWithRed:45/255.0 green:51/255.0 blue:51/255.0 alpha:1]

//通用背景颜色
#define ThemeBackgroundColor [UIColor colorWithRed:244/255.0 green:245/255.0 blue:246/255.0 alpha:1]

//通用Cell背景颜色
#define ThemeCellBackgroundColor [UIColor colorWithRed:254/255.0 green:255/255.0 blue:255/255.0 alpha:1]

//通用灰色
#define ThemeGrayColor [UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:229/255.0]

//通用主色调
#define ThemeColorPrimary [UIColor colorWithRed:251/255.0 green:85/255.0 blue:68/255.0 alpha:1]

//文字高亮色95 226 253
#define TitleColorLight [UIColor colorWithRed:95/255.0 green:226/255.0 blue:253/255.0 alpha:1]

/*                  正则表达式           */
#define Regex_userName @"^[\\u0391-\\uFFE5A-Za-z0-9]{2,20}$"

#define Regex_password @"^(.|\n){6,16}$"

#define Regex_phone @"^(((13[0-9]{1})|14[0-9]{1}|15[0-9]{1}|18[0-9]{1}|17[0-9]{1})+\\d{8})$"

#endif /* constant_h */
